package com.aspose.cells;

import java.util.ArrayList;

class zbrd {
   int a;
   int b;
   int c;
   ArrayList d;
   int e;
   int[] f;

   zbrd(int[] var1) {
      this.b = var1[0];
      this.c = var1[1];
      this.e = var1[2];
      this.a = var1[3];
      this.f = new int[var1.length - 4];
      System.arraycopy(var1, 4, this.f, 0, this.f.length);
   }

   zbrd(int[] var1, ArrayList var2, boolean var3) {
      this.b = var1[0];
      this.c = var1[1];
      this.e = var1[2];
      this.a = var1[3];
      this.f = new int[var1.length - 4];
      System.arraycopy(var1, 4, this.f, 0, this.f.length);
      this.d = var2;
   }

   zbrd(int[] var1, ArrayList var2) {
      this.b = var1[0];
      this.c = var1[1];
      this.e = var1[2];
      this.a = var1[3];
      this.f = new int[var1.length - 4];
      System.arraycopy(var1, 4, this.f, 0, this.f.length);
   }

   int a() {
      return (this.a & '\uffff' & 510) >> 1;
   }

   String b() {
      switch(this.c) {
      case 1:
         return " Total";
      case 2:
         return " Sum";
      case 3:
         return " Count";
      case 4:
         return " Count";
      case 5:
         return " Average";
      case 6:
         return " Max";
      case 7:
         return " Min";
      case 8:
         return " Product";
      case 9:
         return " StdDev";
      case 10:
         return " StdDevp";
      case 11:
         return " Var";
      case 12:
         return " Varp";
      default:
         return " Total";
      }
   }

   boolean c() {
      return (this.a & '\uffff' & 512) != 0 && this.c >= 1 && this.c <= 13 && !this.g() && !this.d();
   }

   boolean d() {
      return (this.a & '\uffff' & 2048) != 0;
   }

   boolean e() {
      return (this.a & '\uffff' & 4096) != 0;
   }

   int f() {
      return (this.a & '\uffff' & 510) >> 1;
   }

   boolean g() {
      return (this.a & '\uffff' & 1024) != 0;
   }
}
